package com.example.cdc.wrap;

import com.github.shyiko.mysql.binlog.event.EventData;

/*
 * @className: BinlogObj
 * @author: chentao
 * @date: 2025/9/25 10:54
 * @Version: 1.0
 * @description:
 */
public class BinlogObj {

    //数据库名
    private String schemaName;

    //表名
    private String tableName;

    //操作类型
    private String type;

    //操作时间
    private long timestamp;

    //操作数据
    private EventData eventData;

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public EventData getEventData() {
        return eventData;
    }

    public void setEventData(EventData eventData) {
        this.eventData = eventData;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public BinlogObj(String schemaName, String tableName, String type, long timestamp, EventData eventData) {
        this.schemaName = schemaName;
        this.tableName = tableName;
        this.type = type;
        this.timestamp = timestamp;
        this.eventData = eventData;
    }
}
